<?php

use think\facade\Route;

//商城后端路由表
Route::group('admin', function () {
    //商品列表
    Route::post('Admin/login', 'Admin/login');
    //配置详情
    Route::post('AdminSetting/configInfo', 'AdminSetting/configInfo');
    //配置修改
    Route::post('AdminSetting/configUpdate', 'AdminSetting/configUpdate');
    //通知配置详情
    Route::post('AdminSetting/msgConfigInfo', 'AdminSetting/msgConfigInfo');
    //通知配置修改
    Route::post('AdminSetting/msgConfigUpdate', 'AdminSetting/msgConfigUpdate');

    Route::post('AdminSetting/payConfigInfo', 'AdminSetting/payConfigInfo');

    Route::post('AdminSetting/payConfigUpdate', 'AdminSetting/payConfigUpdate');
    //banne列表
    Route::post('AdminSetting/bannerList', 'AdminSetting/bannerList');
    //banner添加
    Route::post('AdminSetting/bannerAdd', 'AdminSetting/bannerAdd');
    //banner编辑
    Route::post('AdminSetting/bannerUpdate', 'AdminSetting/bannerUpdate');
    //banner详情（id）
    Route::get('AdminSetting/bannerInfo', 'AdminSetting/bannerInfo');
    //文章列表（title）
    Route::get('AdminSetting/articleList', 'AdminSetting/articleList');
    //添加文章
    Route::post('AdminSetting/articleAdd', 'AdminSetting/articleAdd');
    //编辑文章
    Route::post('AdminSetting/articleUpdate', 'AdminSetting/articleUpdate');
    //文章详情（id）
    Route::get('AdminSetting/articleInfo', 'AdminSetting/articleInfo');
    //文章下拉框
    Route::get('AdminSetting/articleSelect', 'AdminSetting/articleSelect');
    //修改密码（pass）
    Route::post('AdminSetting/updatePass', 'AdminSetting/updatePass');
    //楼长列表
    Route::get('AdminCap/capList', 'AdminCap/capList');
    //楼长数量
    Route::get('AdminCap/capCount', 'AdminCap/capCount');
    //修改楼长
    Route::post('AdminCap/capUpdate', 'AdminCap/capUpdate');
    //团长下拉框
    Route::get('AdminCap/capSelect', 'AdminCap/capSelect');
    //后台提现列表
    Route::get('AdminCap/walletList', 'AdminCap/walletList');
    //同意打款（id,status=2,online 1：线上，0线下）
    Route::post('AdminCap/walletPass', 'AdminCap/walletPass');
    //拒绝打款（id,status=3）
    Route::post('AdminCap/walletNoPass', 'AdminCap/walletNoPass');
    //财务管理
    Route::post('AdminCap/financeList', 'AdminCap/financeList');
    //商品列表
    Route::get('AdminGoods/goodsList', 'AdminGoods/goodsList');
    //审核商品数量
    Route::get('AdminGoods/goodsCount', 'AdminGoods/goodsCount');
    //审核详情
    Route::get('AdminGoods/shInfo', 'AdminGoods/shInfo');
    //审核商品详情
    Route::get('AdminGoods/shGoodsInfo', 'AdminGoods/shGoodsInfo');
    //同意|驳回申请 status 2 同意 3驳回
    Route::post('AdminGoods/shUpdate', 'AdminGoods/shUpdate');
    //用户列表
    Route::get('AdminUser/userList', 'AdminUser/userList');
    //退款列表
    Route::get('AdminOrder/refundOrderList', 'AdminOrder/refundOrderList');
    //发货
    Route::post('AdminOrder/orderGoodsSend', 'AdminOrder/orderGoodsSend');
    //订单列表
    Route::get('AdminOrder/orderList', 'AdminOrder/orderList');
    //订单详情
    Route::get('AdminOrder/orderInfo', 'AdminOrder/orderInfo');
    //退款详情
    Route::get('AdminOrder/refundOrderInfo', 'AdminOrder/refundOrderInfo');
    //拒绝退款
    Route::post('AdminOrder/noPassRefund', 'AdminOrder/noPassRefund');
    //同意退款
    Route::post('AdminOrder/passRefund', 'AdminOrder/passRefund');
    //某一天的数据统计
    Route::post('AdminOrder/dateCount', 'AdminOrder/dateCount');
    //订单导出
    Route::get('AdminExcel/orderList', 'AdminExcel/orderList');
    //财务导出
    Route::get('AdminExcel/dateCount', 'AdminExcel/dateCount');
    //分类列表
    Route::get('AdminGoods/goodsCateList', 'AdminGoods/goodsCateList');
    //添加分类
    Route::post('AdminGoods/goodsCateAdd', 'AdminGoods/goodsCateAdd');

    Route::post('AdminGoods/goodsCateAdd', 'AdminGoods/goodsCateAdd');

    Route::post('AdminGoods/goodsCateUpdate', 'AdminGoods/goodsCateUpdate');

    Route::get('AdminGoods/goodsCateInfo', 'AdminGoods/goodsCateInfo');
    //商品列表
    Route::get('AdminGoods/goodsList', 'AdminGoods/goodsList');
    //商品详情
    Route::get('AdminGoods/goodsInfo', 'AdminGoods/goodsInfo');
    //商品编辑
    Route::post('AdminGoods/goodsUpdate', 'AdminGoods/goodsUpdate');
    //商品添加
    Route::post('AdminGoods/goodsAdd', 'AdminGoods/goodsAdd');
//分类下拉框
    Route::get('AdminGoods/goodsCateSelect', 'AdminGoods/goodsCateSelect');

    Route::post('AdminGoods/updateSpe','AdminGoods/updateSpe');
    //修改商品基本参数 id 比传
    Route::post('AdminGoods/goodsBasicUpdate','AdminGoods/goodsBasicUpdate');

    Route::post('AdminGoods/goodsStatusUpdate','AdminGoods/goodsStatusUpdate');
    //积分列表
    Route::get('AdminMark/integralList','AdminMark/integralList');
    //添加积分
    Route::post('AdminMark/integralAdd','AdminMark/integralAdd');
    //编辑积分
    Route::post('AdminMark/integralUpdate','AdminMark/integralUpdate');
    //积分详情
    Route::get('AdminMark/integralInfo','AdminMark/integralInfo');


    Route::group('AdminGoods', function () {
        //分类列表
        Route::get('goodsCateList', 'AdminGoods/goodsCateList');
        //添加分类
        Route::post('goodsCateAdd', 'AdminGoods/goodsCateAdd');

        Route::post('goodsCateAdd', 'AdminGoods/goodsCateAdd');

        Route::post('goodsCateUpdate', 'AdminGoods/goodsCateUpdate');

        Route::get('goodsCateInfo', 'AdminGoods/goodsCateInfo');
        //商品列表
        Route::get('goodsList', 'AdminGoods/goodsList');
        //商品详情
        Route::get('goodsInfo', 'AdminGoods/goodsInfo');
        //商品编辑
        Route::post('goodsUpdate', 'AdminGoods/goodsUpdate');
        //商品添加
        Route::post('goodsAdd', 'AdminGoods/goodsAdd');
        //分类下拉框
        Route::get('goodsCateSelect', 'AdminGoods/goodsCateSelect');

        Route::post('updateSpe','AdminGoods/updateSpe');
        //修改商品基本参数 id 比传
        Route::post('goodsBasicUpdate','AdminGoods/goodsBasicUpdate');

        Route::post('goodsStatusUpdate','AdminGoods/goodsStatusUpdate');

        Route::post('goodsCopy','AdminGoods/goodsCopy');

    });


    Route::group('AdminFreight', function () {
        //分类列表
        Route::get('tmplList', 'AdminFreight/tmplList');
        //添加分类
        Route::post('tmplAdd', 'AdminFreight/tmplAdd');

        Route::post('tmplUpdate', 'AdminFreight/tmplUpdate');

        Route::get('tmplInfo', 'AdminFreight/tmplInfo');

        Route::get('tmplSelect', 'AdminFreight/tmplSelect');


    });

    Route::group('AdminMember', function () {
        //分类列表
        Route::get('memberList', 'AdminMember/memberList');
        //添加分类
        Route::get('memberSelect', 'AdminMember/memberSelect');

        Route::post('memberAdd', 'AdminMember/memberAdd');

        Route::post('memberUpdate', 'AdminMember/memberUpdate');

        Route::get('memberInfo', 'AdminMember/memberInfo');


    });

    Route::group('AdminMark', function () {
        //分类列表
        Route::get('integralList', 'AdminMark/integralList');

        Route::post('integralAdd', 'AdminMark/integralAdd');

        Route::post('integralUpdate', 'AdminMark/integralUpdate');

        Route::get('integralInfo', 'AdminMark/integralInfo');

        Route::get('signInfo', 'AdminMark/signInfo');

        Route::post('signUpdate', 'AdminMark/signUpdate');

        Route::get('luckList', 'AdminMark/luckList');

        Route::get('luckInfo', 'AdminMark/luckInfo');

        Route::post('luckAdd', 'AdminMark/luckAdd');

        Route::post('luckUpdate', 'AdminMark/luckUpdate');

        Route::get('killList', 'AdminMark/killList');

        Route::get('killInfo', 'AdminMark/killInfo');

        Route::post('killAdd', 'AdminMark/killAdd');

        Route::post('killUpdate', 'AdminMark/killUpdate');

        Route::post('addKillGoods', 'AdminMark/addKillGoods');

        Route::post('killGoodsDel', 'AdminMark/killGoodsDel');

        Route::get('killGoodsList', 'AdminMark/killGoodsList');

        Route::get('killGoodsInfo', 'AdminMark/killGoodsInfo');


    });
});


//商城后端路由表
Route::group('app', function () {
    //用户授权
    Route::post('IndexUser/userUpdate', 'IndexUser/userUpdate');
    //申请团长
    Route::post('IndexUser/capApply', 'IndexUser/capApply');

    Route::get('IndexUser/userInfo', 'IndexUser/userInfo');
    //用户|团长个人中心
    Route::get('IndexUser/index', 'IndexUser/index');
    //个人团长信息
    Route::get('IndexUser/capInfo', 'IndexUser/capInfo');
    //用户地址列表
    Route::get('IndexUser/addressList', 'IndexUser/addressList');
    //地址详情
    Route::get('IndexUser/addressInfo', 'IndexUser/addressInfo');
    //添加地址
    Route::post('IndexUser/addressAdd', 'IndexUser/addressAdd');
    //编辑地址
    Route::post('IndexUser/addressUpdate', 'IndexUser/addressUpdate');
    //删除地址
    Route::post('IndexUser/addressDel', 'IndexUser/addressDel');

    Route::get('IndexUser/signinIndex', 'IndexUser/signinIndex');

    Route::get('IndexUser/signinRecordList', 'IndexUser/signinRecordList');

    Route::post('IndexUser/signin', 'IndexUser/signin');
    //积分记录(add 1积分记录 2积分换购)
    Route::get('IndexUser/integralList', 'IndexUser/integralList');

    Route::get('IndexUser/integralGoodsList', 'IndexUser/integralGoodsList');

    Route::get('Index/userInfo', 'Index/userInfo');
    //获取配置信息
    Route::get('Index/configInfo', 'Index/configInfo');
    //文章详情(id)
    Route::get('Index/articleInfo', 'Index/articleInfo');
    //团长修改自己的个人信息
    Route::post('IndexCap/capUpdate', 'IndexCap/capUpdate');
    //团长商品分类列表
    Route::get('IndexCap/goodsCateList', 'IndexCap/goodsCateList');
    //团长添加商品分类
    Route::post('IndexCap/goodsCateAdd', 'IndexCap/goodsCateAdd');
    //团长编辑商品分类
    Route::post('IndexCap/goodsCateUpdate', 'IndexCap/goodsCateUpdate');
    //团长商品分类下拉框
    Route::post('IndexCap/goodsCateSelect', 'IndexCap/goodsCateSelect');
    //团长端商品列表（status）
    Route::get('IndexCap/goodsList', 'IndexCap/goodsList');
    //团长端添加商品
    Route::post('IndexCap/goodsAdd', 'IndexCap/goodsAdd');
    //团长端编辑商品
    Route::post('IndexCap/goodsUpdate', 'IndexCap/goodsUpdate');
    //团长端商品信息
    Route::get('IndexCap/goodsInfo', 'IndexCap/goodsInfo');
    //批量上下架
    Route::post('IndexCap/someGoodsUpdate', 'IndexCap/someGoodsUpdate');
    //团长端提交商品审核（goods_id）
    Route::post('IndexCap/subGoodsSh', 'IndexCap/subGoodsSh');
    //团长端商品上下架（id,status）
    Route::post('IndexCap/goodsStatusUpdate', 'IndexCap/goodsStatusUpdate');
    //商品各个状态下的数量
    Route::post('IndexCap/goodsCount', 'IndexCap/goodsCount');
    //团长核销订单（id）
    Route::post('IndexCap/hxOrder', 'IndexCap/hxOrder');
    //订单列表
    Route::get('IndexCap/orderList', 'IndexCap/orderList');
    //商品审核列表
    Route::get('IndexCap/shList', 'IndexCap/shList');

    Route::get('IndexCap/shInfo', 'IndexCap/shInfo');
    //团长端退款列表
    Route::get('IndexCap/refundOrderList', 'IndexCap/refundOrderList');
    //团长同意退款(id,price)
    Route::post('IndexCap/passRefund', 'IndexCap/passRefund');
    //团长拒绝退款(id)
    Route::post('IndexCap/noPassRefund', 'IndexCap/noPassRefund');
    //团长佣金信息
    Route::get('IndexCap/capCashInfo', 'IndexCap/capCashInfo');
    //提现记录
    Route::get('IndexCap/capCashList', 'IndexCap/capCashList');
    //申请提现(apply_cash,text)
    Route::post('IndexCap/applyWallet', 'IndexCap/applyWallet');

    Route::get('IndexGoods/indexCapList', 'IndexGoods/indexCapList');
    //选择楼长(cap_id)
    Route::post('IndexGoods/selectCap', 'IndexGoods/selectCap');
    //分类列表
    Route::get('IndexGoods/cateList', 'IndexGoods/cateList');
    //商品首页信息
    Route::get('IndexGoods/index', 'IndexGoods/index');
    //购物车信息
    Route::get('IndexGoods/carInfo', 'IndexGoods/carInfo');
    //商品列表
    Route::get('IndexGoods/goodsList', 'IndexGoods/goodsList');

    Route::get('IndexGoods/shopCouponList', 'IndexGoods/shopCouponList');
    //用户领取优惠券coupon_id
    Route::get('IndexGoods/userGetCoupon', 'IndexGoods/userGetCoupon');
    //商品详情
    Route::get('IndexGoods/killAtvList', 'IndexGoods/killAtvList');

    Route::get('IndexGoods/killGoodsList', 'IndexGoods/killGoodsList');

    Route::get('IndexGoods/hotGoodsList', 'IndexGoods/hotGoodsList');

    Route::get('IndexGoods/luckInfo', 'IndexGoods/luckInfo');

    Route::get('IndexGoods/luckRecord', 'IndexGoods/luckRecord');

    Route::get('IndexGoods/userLuckRecord', 'IndexGoods/userLuckRecord');

    Route::post('IndexGoods/luckDraw', 'IndexGoods/luckDraw');

    Route::post('IndexGoods/killNotice', 'IndexGoods/killNotice');



    //添加购物车（goods_id,spe_id,goods_num = 1）
    Route::post('IndexGoods/addCar', 'IndexGoods/addCar');
    //删除购物车|减少购物车商品数量（id,goods_num=1）
    Route::post('IndexGoods/delCar', 'IndexGoods/delCar');
    //批量删除购物车（ID ：arr）
    Route::post('IndexGoods/delSomeCar', 'IndexGoods/delSomeCar');
    //
    Route::post('IndexGoods/carUpdate', 'IndexGoods/carUpdate');
    //
    Route::post('IndexOrder/payOrder', 'IndexOrder/payOrder');

    Route::get('IndexOrder/payOrderInfo', 'IndexOrder/payOrderInfo');

    Route::get('IndexOrder/goodsSendType', 'IndexOrder/goodsSendType');
    //用户订单列表（pay_type,name）
    Route::get('IndexOrder/orderList', 'IndexOrder/orderList');
    //订单详情
    Route::get('IndexOrder/orderInfo', 'IndexOrder/orderInfo');
    //重新支付
    Route::post('IndexOrder/rePayOrder', 'IndexOrder/rePayOrder');
    //取消订单
    Route::post('IndexOrder/cancelOrder', 'IndexOrder/cancelOrder');
    //申请退款（order_id,list:['id','num']）
    Route::post('IndexOrder/applyOrder', 'IndexOrder/applyOrder');
    //取消退款
    Route::post('IndexOrder/cancelRefundOrder', 'IndexOrder/cancelRefundOrder');
    //用户端退款列表（name,status）
    Route::get('IndexOrder/refundOrderList', 'IndexOrder/refundOrderList');
    //退款详情
    Route::get('IndexOrder/refundOrderInfo', 'IndexOrder/refundOrderInfo');
    //刷新订单二维码(id)
    Route::post('IndexOrder/refreshQr', 'IndexOrder/refreshQr');

    Route::post('IndexOrder/endOrder', 'IndexOrder/endOrder');

    Route::get('IndexOrder/couponList', 'IndexOrder/couponList');





});


//支付
Route::any('IndexWxPay/returnPay', 'IndexWxPay/returnPay');

Route::any('IndexWxPay/aliNotify', 'IndexWxPay/aliNotify');



















